<!DOCTYPE html>
<html ng-app="app">
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <meta charset="UTF-8">
    <meta name="keyword" content="犀牛故事">
    <meta name="description" content="这是个故事app">
    <meta name="author" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link type="text/css" rel="stylesheet" href="components/materialize/dist/css/materialize.css"  media="screen,projection"/>
    <link rel="stylesheet" href="components/materialize/dist/css/reset.css">
</head>
<body>

<script>
    window.onload=function () {
        //第一步：创建对象--xhr，null都是一个对象
        var xhr = null;
        xhr=window.XMLHttpRequest? new XMLHttpRequest(): new ActiveXObject('Microsoft.XMLHTTP');  //兼容ie处理

        //第二步：先筹划，以什么方式发送请求，发送到那个端口(form.php)
<<<<<<< HEAD:static/index.html
        xhr.open('get','/api/shouye/get',true);
=======
<<<<<<< HEAD:static/index.html
        xhr.open('get','/api/shouye/get',true);

        //第三步：执行发送的动作
        xhr.send(null);

        //第四步：指定一些回调函数
=======
        xhr.open('get','/api/mimi/get',true);
>>>>>>> 75099360b20d259401a06203a3c7b21f14104207:static/test.html
>>>>>>> 8714c8b5ba9feaa1406e84e2f3dad3ba2d6fab1d:static/test.html

        xhr.onreadystatechange=function () {
            if(xhr.readyState==4){
                if(xhr.status==200) {
                    var data = xhr.responseText;
                console.log(JSON.parse(data))

                }
            }
        };
        xhr.send(null);}

</script>
<script type="text/javascript"  src="components/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="components/materialize/dist/js/materialize.min.js"></script>
<script type="text/javascript" src="components/angular/angular.js"></script>
<script type="text/javascript" src="components/angular-ui-router/release/angular-ui-router.js"></script>
<script src="script/header.js"></script>
<script src="./script/r-c.js"></script>
<script src="./script/controller.js"></script>
</body>
</html>
        